package com.mce.nebula.dto;

import com.mce.nebula.entity.User;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户响应DTO
 */
@Data
public class UserResponse {
    
    private Long id;
    private String nickName;
    private String email;
    private String realName;
    private String phone;
    private Boolean isActive;
    private Boolean sysAdmin;
    private String enterpriseId;
    private String logo;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    public UserResponse(User user) {
        this.id = user.getId();
        this.nickName = user.getNickName();
        this.email = user.getEmail();
        this.realName = user.getRealName();
        this.phone = user.getPhone();
        this.isActive = user.getIsActive();
        this.sysAdmin = user.getSysAdmin();
        this.enterpriseId = user.getEnterpriseId();
        this.logo = user.getLogo();
        this.createTime = user.getCreateTime();
        this.updateTime = user.getUpdateTime();
    }
}





